package encapsulation;

/**
 * @classname:CalcTest
 * @description:
 * @author: Mr.Z
 * @date: 2020/11/27 22:21
 * @version: 0.1
 * @since:1.8
 */
public class SalaryCalcTest {
    public static void main(String[] args) {
        PM pm = new PM(01,"张三","男",10000,80,300);
        SE se = new SE(02,"李四","男",8000,90);
        SalaryCalc salaryCalc = new SalaryCalc();
        double pasalary = salaryCalc.pay(pm);
        double sesalary = salaryCalc.pay(se);
        System.out.println("程序员的工资为："+pasalary);
        System.out.println("项目经理的工资为："+sesalary);
    }

}
